package l2ft.gameserver.model.entity.events.fightclubmanager;

import l2ft.gameserver.model.Player;
import l2ft.gameserver.model.entity.league.League;

public class FightClubLastPlayerStats
{
	private String _playerNickName;
	private League _league;
	private String _clanName;
	private String _typeName;
	private int _score;
	private int _badgesEarned;
	private int _realizationTime;//in seconds

	//Set when event is over
	private int _bestScore;
	private int _pos;
	
	public FightClubLastPlayerStats(Player player, String typeName, int score, int badgesEarned, int realizationTime)
	{
		_playerNickName = player.getName();
		_league = League.Diamond;//TODO
		_clanName = player.getClan() != null ? player.getClan().getName() : "";
		_typeName = typeName;
		_score = score;
		_badgesEarned = badgesEarned;
		_realizationTime = realizationTime;
	}
	
	public void setPosition(int pos)
	{
		_pos = pos;
	}
	
	public void setBestScore(int bestScore)
	{
		_bestScore = bestScore;
	}
	
	public boolean isMyStat(Player player)
	{
		return _playerNickName.equals(player.getName());
	}
	
	public String getPlayerName()
	{
		return _playerNickName;
	}
	
	public League getLeague()
	{
		return _league;
	}
	
	public String getClanName()
	{
		return _clanName;
	}
	
	public String getTypeName()
	{
		return _typeName;
	}
	
	public int getScore()
	{
		return _score;
	}
	
	public int getBadgesEarned()
	{
		return _badgesEarned;
	}
	
	public int getRealizationTime()
	{
		return _realizationTime;
	}
	
	public int getBestScore()
	{
		return _bestScore;
	}
	
	public int getPosition()
	{
		return _pos;
	}
}
